cmake_minimum_required(VERSION 3.5)
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 11)

project(sidecar)

include_directories(src/include vender/hiredis)

set(DIR_SRCS ./src/main.c)
add_subdirectory(vender/hiredis)

add_library(sidecar src/lib/sidecar.cpp)
target_link_libraries(sidecar hiredis stdc++)

add_executable(sidecar.main src/main.c)
target_link_libraries(sidecar.main sidecar hiredis)
